# Contributor: Sam Whited <sam@samwhited.com>
# Maintainer: Sam Whited <sam@samwhited.com>
pkgname=py3-slixmpp
_pkgname=slixmpp
pkgver=1.8.2
pkgrel=1
pkgdesc="A fork of the SleekXMPP XMPP library for async IO and Python 3.7+."
url="https://slixmpp.readthedocs.io/en/latest/"
arch="all"
license="MIT"
depends="python3 py3-cryptography py3-aiodns py3-aiohttp py3-emoji py3-defusedxml"
makedepends="py3-setuptools python3-dev libidn libidn-dev cython"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # Tests for this version always fail.

build() {
	python3 setup.py build_ext --inplace
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm644 LICENSE README.rst -t "$pkgdir"/usr/share/licenses/$pkgname
}

sha512sums="
243223754a7c84b653d0282b38f4df58fb5905865635c210bc78b444e85c3b8b964feda7d42b66e9c414ea7a07ecadfc3206c446cc1d9fa625308e783e3d3be5  slixmpp-1.8.2.tar.gz
"
